<template>
  <div class="common-layout">
    <el-container>
      <el-header>
        <div class="title_name">应急资源管理系统</div>
      </el-header>
      <el-container>
        <el-aside width="200px">
          <el-scrollbar>
            <el-menu :default-active="$route.path" :router="true" background-color="#f2f2f2">
              <el-sub-menu index="/">
                <template #title>
                  <span>应急管理系统</span>
                </template>
                <el-menu-item index="/vehicle">应急车辆管理</el-menu-item>
                <el-menu-item index="/duty">值班值守管理</el-menu-item>
              </el-sub-menu>
            </el-menu>
          </el-scrollbar>
        </el-aside>
        <el-main>
          <router-view />
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>
<style lang="scss" scoped>
.common-layout {
  width: 100%;
  height: 100%;
  .el-header {
    padding-left: 0px;
  }
}
.el-header{
  text-align: left; 
  background-color: #2166be; 
  font-size: 12px;
}
.el-aside {
  background-color: #f2f2f2;
}

.el-container {
  width: 100%;
  min-height: 100%;
}

.el-main {
  padding: 0px;
  width: 100%;
}
.title_name {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 100%;
  font-size: 20px;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.3);
}
</style>
<script setup lang="ts">
</script>